import request from '@/utils/request'

//查询
export function Pages(Cha) {
  return request({
    url: '/services/app/CheDataService/GetAll',
    method: 'get',
    params: Cha
  })
}
//车辆单删
export function shan(id) {
    return request({
      url: '/services/app/CheDataService/Delete',
      method: 'delete',
      params: {Id:id}
    })
  }
//车辆批删
  export function pidelete(dd) {
    return request({
      url: '/services/app/CheDataService/Delete',
      method: 'delete',
      params: {Id:dd}
    })
  }
  //车辆添加
  export function cheadds(cheaddList) {
    return request({
      url: '/services/app/CheDataService/Create',
      method: 'post',
      data: cheaddList
    })
  }
  //编辑反填
  export function pagess(id) {
    return request({
      url: '/services/app/CheDataService/Get',
      method: 'get',
      params: {Id:id}
    })
  }
  //修改
  export function Eintyess(tableData) {
    return request({
      url: '/services/app/CheDataService/Update',
      method: 'put',
      data: tableData
    })
  }
  //外协显示查询
  export function WaixiePages(Cha) {
    return request({
      url: '/services/app/WaixieDataService/GetAll',
      method: 'get',
      params: Cha
    })
  }
    //外协单删
    export function handleDeletes(id) {
      return request({
        url: '/services/app/WaixieDataService/Delete',
        method: 'delete',
        params: {Id:id}
      })
    }
     //外协添加
     export function WaixieBaos(WaixieList) {
      return request({
        url: '/services/app/WaixieDataService/Create',
        method: 'post',
        data: WaixieList
      })
    }
    
      // //外协批删
      // export function Waipideletes(arrid) {
      //   return request({
      //     url: '/services/app/WaixieDataService/DeleteAll',
      //     method: 'delete',
      //     params:{ids:arrid}
      //   })
      // }
      //批删外协
     export function Waipideletes(arrid) {
      return request({
        url: '/services/app/WaixieDataService/Delete',
        method: 'delete',
        params: {Id:arrid}
      })
    }
    
    //外协修改反填
    export function handleEdits(id) {
      return request({
        url: '/services/app/WaixieDataService/Get',
        method: 'get',
        params: {Id:id}
      })
    }
    
    //外协修改保存
    export function EintBaos(EintTable) {
      return request({
        url: '/services/app/WaixieDataService/Update',
        method: 'put',
        data: EintTable
      })
    }
 
 //货主显示
  // export function HuoPages(Cha) {
  //   return request({
  //     url: '/services/app/HuoDataService/GetAll',
  //     method: 'get',
  //     params: Cha
  //   })
  // }
  export function HuoPages(Cha) {
    return request({
      url: '/services/app/HuoDataService/GetAll',
      method: 'get',
      params: Cha
    })
  }
  //货主单删
  export function Huodeletes(id) {
    return request({
      url: '/services/app/HuoDataService/Delete',
      method: 'delete',
      params: {Id:id}
    })
  }
  
   //货主批删
   export function Huopideletes(id) {
    return request({
      url: '/services/app/HuoDataService/Delete',
      method: 'delete',
      params: {Id:id}
    })
  }
   //货主添加
   export function HuoBaos(HuozhuList) {
    return request({
      url: '/services/app/HuoDataService/Create',
      method: 'post',
      data: HuozhuList
    })
  }
   //货主反反填
   export function Huoeints(id) {
    return request({
      url: '/services/app/HuoDataService/Get',
      method: 'get',
      params: {Id:id}
    })
  }
  
     //货主修改
     export function Huoxius(aa) {
      return request({
        url: '/services/app/HuoDataService/Update',
        method: 'put',
        data: aa
      })
    }
    
     //油费查询
     export function YouPages(Cha) {
      return request({
        url: '/services/app/YoufeiDataService/GetAll',
        method: 'get',
        params: Cha
      })
    }
     //油费删除
     export function YouDeletes(id) {
      return request({
        url: '/services/app/YoufeiDataService/Delete',
        method: 'delete',
        params: {Id:id}
      })
    }
     //油费删除
     export function Youpideletes(r) {
      return request({
        url: '/services/app/YoufeiDataService/Delete',
        method: 'delete',
        params: {Id:r}
      })
    }
    //油费添加
    export function YouBaos(YouList) {
      return request({
        url: '/services/app/YoufeiDataService/Create',
        method: 'post',
        data: YouList
      })
    }
    //油费反填
    export function YouEdits(id) {
      return request({
        url: '/services/app/YoufeiDataService/Get',
        method: 'get',
        params: {Id:id}
      })
    }
    //油费反填
    export function Youxius(EintTable) {
      return request({
        url: '/services/app/YoufeiDataService/Update',
        method: 'put',
        data: EintTable
      })
    }
     //线路查询
     export function XianPages(Cha) {
      return request({
        url: '/services/app/XianluDataService/GetMyPage',
        method: 'get',
        params: Cha
      })
    }
     //线路删除
     export function XianDeletes(id) {
      return request({
        url: '/services/app/XianluDataService/Delete',
        method: 'delete',
        params: {Id:id}
      })
    }
    //线路批删删除
    export function Xianpideletes(r) {
      return request({
        url: '/services/app/XianluDataService/Delete',
        method: 'delete',
        params: {Id:r}
      })
    }
    //线路添加
    export function XianBaos(XianList) {
      return request({
        url: '/services/app/XianluDataService/Create',
        method: 'post',
        data: XianList
      })
    }
     //线路反填
     export function XianEdits(id) {
      return request({
        url: '/services/app/XianluDataService/Get',
        method: 'get',
        params: {Id:id}
      })
    }
     //线路修改
     export function XianXius(BianTable) {
      return request({
        url: '/services/app/XianluDataService/Update',
        method: 'put',
        data: BianTable
      })
    }
         //三级联动
         export function SanJILianDong() {
          return request({
            url: '/services/app/SanjiDataService/SanJILianDong',
            method: 'get',
           
          })
        }